<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";	
%>
<html>
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户</title>
<jsp:include page="../../../common/easyui-css.inc" flush="true"/>
<script type="text/javascript" src="js/validate.js" charset="UTF-8"></script>
</head>
<body>
<div id="dlg-buttons" class="pageButtonDiv" style="text-align:left;margin:0px 10px 15px 15px;"> 
    <a id="user_save_btn" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save">保存</a> 
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:parent.$('#addWin').window('close')" iconcls="icon-cancel">取消</a> 
</div> 
<form name="saveForm" id="saveForm" method="post">
	<div id="mainDiv">
	<table class="table_save" width="100%" cellspacing="1" cellpadding="1" border="0">	
	<tr>		
		<td class="td_save contentEdit" width="90" align="right">组织机构:</td>
		<td width="200"style="text-align:left;">
		   <input type="text" name="citysId" id="citysId" value="${citysId}"style="width:50%;"/>
		   <input type="hidden" id="hidd_cityName" value="${citysName}">
<!--		   <input type="button" id="department_ref_btn" class="formButton" style="width:30px;" value="..."/> -->
		</td>		
	</tr>	
	<tr>		
		<td class="td_save contentRequired" align="right">登录名:</td>
		<td>
			<input type="text" name="loginName" id="loginName" value="" class="input easyui-validatebox" />
		</td>
	</tr>
	<tr>		
		<td class="td_save contentRequired" align="right" >登录密码:</td>
		<td style="text-align:left;">
		 	<input type="password" name="loginPwd" id="loginPwd" value="123456" class="input easyui-validatebox"  data-options="required:true"style="width:60%;vertical-align: middle;"/>
		 	<span style="color: red;margin-top:3px;">默认:123456</span>
		</td>		
	</tr>
	<tr>		
		<td align="right" class="td_save contentRequired">姓名:</td>
		<td>
		 	<input type="text" name="userName" id="userName" value="" class="input easyui-validatebox"   />
		</td>		
	</tr>
	<tr>
	  <td class="td_save contentEdit" align="right">性别:</td>
	  <td style="text-align:left;">
		 <select id="sex" name="sex" class="select">		   
		   <option value="1">男</option>
		   <option value="0">女</option>
		 </select>
	  </td> 
	</tr>	
	<tr>
	  <td class="td_save contentEdit" align="right">角色:</td>
	  <td id="tdRole" style="text-align:left;">
	  	<table id="tabRole">
	  		<tbody id="job">
	  			<tr><td><input id="sum" type="hidden" value=""/></td></tr>
	  		</tbody>
	  	</table>
	  		
<!--		 <select id="roleId" name="roleId" class="select">		   -->
<!--		   <c:forEach items="${roles}" var="role">-->
<!--		      <option value="${role.roleId }">${role.roleName }</option>-->
<!--		   </c:forEach>-->
<!--		 </select>-->
		 <input type="button" id="role_ref_btn" class="formButton" style="width:80px;" value="选择角色"/>
		 <input type="button" id="delete_roleRef" class="formButton" style="width:30px;" value="删除"/>
	  </td> 
	</tr>
	<tr>		
		<td align="right" class="td_save contentEdit">手机号:</td>
		<td>
		 	<input type="text" name="mobilePhone" id="mobilePhone" value="" class="input" />
		</td>		
	</tr>
	<tr>		
		<td align="right" class="td_save contentEdit">电话:</td>
		<td style="text-align:left;">
		 	<input type="text" name="tel" id="tel" value="" class="input" />
<!--		 	<span style="color: red;font-size:13px;">例:0532-88881234</span>-->
		</td>		
	</tr>
	<tr>		
		<td align="right" class="td_save contentRequired">电子邮箱:</td>
		<td>
		 	<input type="text" name="email" id="email" value="" class="input" />
		</td>		
	</tr>	
	<tr>		
		<td align="right" class="td_save contentEdit">其它联系方式:</td>
		<td >
			<textarea rows="3" cols="30" id="otherContactWay" name="otherContactWay" style="width:99%;border:1px solid #09C;"></textarea>
		</td>		
	</tr>
  </table>
  </div>	
  	<div id="roleRefDiv" style="width:45%;display:none;float:left;display:inline;margin:20px 0 0 20px;border:1px solid #EAEAEA;background-color:#F9FBFD;">
  		<div id="" style="margin:0 0 0 0;width:100%" class="pageButtonDiv" > 请选择角色
		    <a id="role_save_btn" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save">确定</a> 
		    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeRef();" iconcls="icon-cancel">取消</a> 
		</div> 
  		<table id="roleRefTable" align="center" class="table_save" width="40%" cellspacing="1" cellpadding="1" border="0" >
  		</table>
  	</div>
  
  <input type="hidden" id="roleIds" value=""/>
  <input type="hidden" id="companyId" value=""/>
  <input type="hidden" id="department" value=""/>
</form>

<div id="addWin"></div>
<jsp:include page="../../../common/easyui-js.inc" flush="true"/>
<script type="text/javascript" src="pages/sys/user/addUser.js?version=<%=Math.random() %>"></script>
</body>
</html>
